package org.example.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@Data
@TableName("sca_order")
@NoArgsConstructor
@AllArgsConstructor
public class Order {

    @TableId(type = IdType.INPUT) // 主键自增
    private Long id;

    @TableField("create_date")
    private Long createDate;

    private Integer status;

    @TableField("user_id")
    private Integer userId;

}
